home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12269 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: portland.caps.maine.edu!dseama41
  2. Organization: University of Maine System
  3. Date: Fri, 29 Mar 1996 21:23:32 EST
  4. From: Starduster <DSEAMA41@portland.caps.maine.edu>
  5. Message-ID: <96089.212332DSEAMA41@portland.caps.maine.edu>
  6. Newsgroups: comp.lang.c
  7. Subject: Re: Slow Turbo-C++ 3.0 for DOS...
  8. References: <4jejic$b4v@news.xs4all.nl> <4jf5a4$i0f@ccshst05.cs.uoguelph.ca>
  9.  <4jgdnq$ei9@news.xs4all.nl>
  10.  
  11. In article <4jgdnq$ei9@news.xs4all.nl>, stijnw@xs4all.nl (Stijn Wolters) says:
  12. >
  13. >I used some test-sources, very small programs for generating
  14. >Mandelbrot & Julia fractals. The sources are identical as much as
  15. >possible.
  16. >
  17. >Greetings,
  18. >Stijn Wolters (stijnw@xs4all.nl)
  19. >
  20. >
  21. >
  22.    What floating-point options did you use for each? Are you using equivalent
  23. data types in each language? (remembering that real in Pascal is *not* the
  24. same IEEE type as double in C, etc.) What memory models did you use? WHich
  25. compiler optimizations were  turned on? Lots of questions remain unanswered
  26. here. It would be best to post the code itself here and let people compare.
  27. Remember also that certain "special-purpose" I/O functions in C (e.g., getc(),)
  28. ,getc(),
  29. putc(), etc. for *one* character only instead of the more general purpose
  30. printf(), gets(), puts, etc.) may give Turbo C++ the speed advantage you expect
  31. . In Turbo Pascal, of course, you simply use readln and writeln (or read and
  32. write) for most I/O, of course. Using the more general counterparts in C may
  33. take away its expected speed advantage.
  34.